﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectUsers.aspx.cs" Inherits="ArtLand.OA.Project.PublicModel.SelectUsers" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" AutoSizePanelID="RegionPanel1" />
        <ext:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="btnSelect" Icon="Accept" OnClick="btnSelect_Click" Text="确定"></ext:Button>
                    </Items>
                </ext:Toolbar>
                <ext:Toolbar Position="Bottom">
                    <Items>
                        <ext:ToolbarText runat="server" ID="txt_SelectUsers" Text="&nbsp;"></ext:ToolbarText>
                        <ext:ToolbarFill></ext:ToolbarFill>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Regions>
                <ext:Region ID="Region2" Split="true" EnableSplitTip="true" CollapseMode="Mini" Width="140px"
                    Margins="0 0 0 0" ShowHeader="true" Title="选择部门" EnableLargeHeader="false" Icon="Outline"
                    EnableCollapse="true" Layout="Fit" Position="Left" runat="server" ShowBorder="false">
                    <Items>
                        <ext:Tree runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"
                            AutoScroll="true" ID="treeMenu" OnNodeCommand="treeMenu_NodeCommand">
                        </ext:Tree>

                    </Items>

                </ext:Region>
                <ext:Region ID="Region3" Layout="Fit" ShowHeader="false" Margins="0 0 0 0" Position="Center" runat="server" ShowBorder="false">
                    <Items>
                        <ext:Panel runat="server" Layout="Fit" ShowBorder="false" ShowHeader="false">
                            <Items>
                                <ext:Grid ID="Grid1" EnableRowDoubleClick="true" OnRowDoubleClick="Grid1_RowDoubleClick" CheckBoxSelectOnly="true" OnRowDataBound="Grid1_RowDataBound" DataKeyNames="ID" EnableColumnLines="true" runat="server" EnableCheckBoxSelect="false" Title="部门人员" ShowBorder="false">
                                    <Toolbars>
                                        <ext:Toolbar>
                                            <Items>
                                                <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                                                    OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                                                    EmptyText="请输入员工编号或员工姓名" Trigger2Icon="Search" runat="server" Width="180px">
                                                </ext:TwinTriggerBox>
                                            </Items>
                                        </ext:Toolbar>
                                    </Toolbars>
                                    <Columns>
                                        <ext:TemplateField Width="30px">
                                            <ItemTemplate>
                                                <asp:CheckBox runat="server" ID="CheckBox1" AutoPostBack="true" OnCheckedChanged="CheckBox1_CheckedChanged" />
                                            </ItemTemplate>
                                        </ext:TemplateField>
                                        <ext:BoundField HeaderText="员工编号" DataField="ID" Hidden="true" />
                                        <ext:BoundField HeaderText="员工编号" DataField="EMPLID" />
                                        <ext:BoundField HeaderText="员工姓名" DataField="EMNAME" TextAlign="Center" />
                                        <ext:BoundField HeaderText="所属部门" DataField="DEPMET" TextAlign="Center" />
                                    </Columns>
                                </ext:Grid>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:Region>
            </Regions>
        </ext:RegionPanel>
        <ext:TextBox runat="server" ID="hid_IDList"></ext:TextBox>
    </form>
    <script src="../js/extgridbug.js"></script>
</body>
</html>
